package com.kayak.distribute.client.schedule.controller;

import com.kayak.distribute.client.schedule.bean.TaskBean;
import com.kayak.distribute.client.schedule.mapper.TaskBeanMapper;
import com.kayak.distribute.client.schedule.service.ITaskBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Dsecription TODO
 * @Auth tinxi
 * @DATAE 2019/3/25 11:03
 */
@RestController
public class TestController {

	@Autowired
	private ITaskBeanService taskBeanService;

	@RequestMapping(value = "/get111", method = {RequestMethod.GET})
	public String startDailyTask() {
		try {
//            taskService.startDailyTask();
			TaskBean taskBean = taskBeanService.get(2L);
			System.out.println(taskBean);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "success";
	}
}
